﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.State.TrafficLights.Abstract
{
    /// <summary>
    /// 抽象灯
    /// </summary>
    public abstract class AbstractLight
    {
        /// <summary>
        /// 显示
        /// </summary>
        public abstract void Show();

        /// <summary>
        /// 变灯
        /// </summary>
        public abstract void Change(Context context);

        /// <summary>
        /// 灯的颜色改变
        /// </summary>
        public abstract void Turn();

        public LightColor Color { get; set; }
    }
}
